<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::AbstractTrainer&lt; Model, LabelTypeT &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_abstract_trainer.html">AbstractTrainer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_abstract_trainer-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle"><div class="title">shark::AbstractTrainer&lt; Model, LabelTypeT &gt; Class Template Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group__supervised__trainer.html">Supervised Trainers</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Superclass of supervised learning algorithms.  
 <a href="classshark_1_1_abstract_trainer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_abstract_trainer_8h_source.html">shark/Algorithms/Trainers/AbstractTrainer.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::AbstractTrainer&lt; Model, LabelTypeT &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_abstract_trainer__inherit__graph.png" border="0" usemap="#ashark_1_1_abstract_trainer_3_01_model_00_01_label_type_t_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_abstract_trainer_3_01_model_00_01_label_type_t_01_4_inherit__map" id="ashark_1_1_abstract_trainer_3_01_model_00_01_label_type_t_01_4_inherit__map">
<area shape="rect" title="Superclass of supervised learning algorithms." alt="" coords="186,501,341,542"/>
<area shape="rect" href="classshark_1_1_abstract_svm_trainer.html" title=" " alt="" coords="396,5,612,61"/>
<area shape="poly" title=" " alt="" coords="261,485,265,402,271,349,282,291,298,232,320,174,349,119,387,70,399,60,402,64,391,74,354,122,325,176,303,234,287,293,277,350,271,403,267,486"/>
<area shape="rect" href="classshark_1_1_abstract_svm_trainer.html" title=" " alt="" coords="394,85,613,155"/>
<area shape="poly" title=" " alt="" coords="265,485,275,418,296,333,312,288,332,244,357,202,387,165,399,154,403,158,391,168,361,205,337,247,317,290,301,335,280,419,270,486"/>
<area shape="rect" href="classshark_1_1_abstract_svm_trainer.html" title=" " alt="" coords="396,179,612,234"/>
<area shape="poly" title=" " alt="" coords="269,485,283,432,306,368,340,302,362,272,387,245,403,233,406,237,391,248,366,275,344,305,311,370,288,434,274,486"/>
<area shape="rect" href="classshark_1_1_abstract_svm_trainer.html" title=" " alt="" coords="414,258,594,299"/>
<area shape="poly" title=" " alt="" coords="274,485,290,444,315,397,347,350,387,310,412,295,414,300,391,314,351,353,319,400,295,447,279,487"/>
<area shape="rect" href="classshark_1_1_abstract_weighted_trainer.html" title=" " alt="" coords="395,324,613,364"/>
<area shape="poly" title=" " alt="" coords="283,486,326,428,355,399,388,374,409,362,411,367,390,378,359,403,330,432,287,489"/>
<area shape="rect" href="classshark_1_1_abstract_weighted_trainer.html" title=" " alt="" coords="402,388,606,444"/>
<area shape="poly" title=" " alt="" coords="313,491,388,453,417,442,419,447,390,458,315,495"/>
<area shape="rect" href="classshark_1_1_abstract_weighted_trainer.html" title=" " alt="" coords="389,468,618,508"/>
<area shape="poly" title=" " alt="" coords="356,506,388,501,389,506,356,511"/>
<area shape="rect" href="classshark_1_1_abstract_weighted_trainer.html" title=" " alt="" coords="392,533,616,574"/>
<area shape="poly" title=" " alt="" coords="357,531,391,536,391,541,356,536"/>
<area shape="rect" href="classshark_1_1_abstract_weighted_trainer.html" title=" " alt="" coords="400,598,607,639"/>
<area shape="poly" title=" " alt="" coords="315,547,390,583,425,595,423,600,388,588,313,552"/>
<area shape="rect" href="classshark_1_1_abstract_weighted_trainer.html" title=" " alt="" coords="398,664,610,704"/>
<area shape="poly" title=" " alt="" coords="290,552,334,602,361,627,390,648,416,661,413,665,388,653,357,631,330,606,286,556"/>
<area shape="rect" href="classshark_1_1_abstract_svm_trainer.html" title="Super class of all kernelized (non&#45;linear) SVM trainers." alt="" coords="415,728,592,784"/>
<area shape="poly" title=" " alt="" coords="281,555,298,592,323,635,353,677,391,714,416,729,413,734,387,718,349,681,318,637,294,594,276,557"/>
<area shape="rect" href="classshark_1_1_abstract_weighted_trainer.html" title="Superclass of weighted supervised learning algorithms." alt="" coords="402,808,606,848"/>
<area shape="poly" title=" " alt="" coords="273,556,287,609,309,673,343,738,365,768,391,794,407,805,404,809,387,798,361,771,339,741,304,676,281,611,268,557"/>
<area shape="rect" href="classshark_1_1_lasso_regression.html" title="LASSO Regression." alt="" coords="423,873,585,914"/>
<area shape="poly" title=" " alt="" coords="270,557,280,621,300,702,316,745,336,786,361,824,391,858,406,869,423,878,421,882,403,874,387,862,357,827,331,789,311,747,295,704,274,622,265,557"/>
<area shape="rect" href="classshark_1_1_optimization_trainer.html" title="Wrapper for training schemes based on (iterative) optimization." alt="" coords="417,938,591,979"/>
<area shape="poly" title=" " alt="" coords="268,556,273,632,292,731,307,783,328,834,356,881,391,923,418,941,415,945,387,927,352,885,324,836,302,785,286,732,268,633,262,557"/>
<area shape="rect" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name." alt="" coords="9,483,134,509"/>
<area shape="poly" title=" " alt="" coords="149,503,186,508,185,514,149,509"/>
<area shape="rect" href="classshark_1_1_i_serializable.html" title="Abstracts serializing functionality." alt="" coords="5,532,138,558"/>
<area shape="poly" title=" " alt="" coords="152,532,185,528,185,534,153,538"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a0d5c9d35b614d6a33e4e8bfeaf1e9298" id="r_a0d5c9d35b614d6a33e4e8bfeaf1e9298"><td class="memItemLeft" align="right" valign="top">typedef Model&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a></td></tr>
<tr class="separator:a0d5c9d35b614d6a33e4e8bfeaf1e9298"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cfa7cdd27b8bb162e64188095f8fa71" id="r_a0cfa7cdd27b8bb162e64188095f8fa71"><td class="memItemLeft" align="right" valign="top">typedef ModelType::InputType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a></td></tr>
<tr class="separator:a0cfa7cdd27b8bb162e64188095f8fa71"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4e344106831fb8227c2120681588ea9" id="r_aa4e344106831fb8227c2120681588ea9"><td class="memItemLeft" align="right" valign="top">typedef LabelTypeT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a></td></tr>
<tr class="separator:aa4e344106831fb8227c2120681588ea9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4730fe9d59622d35d95cd4233f8d7af" id="r_aa4730fe9d59622d35d95cd4233f8d7af"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a>, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a></td></tr>
<tr class="separator:aa4730fe9d59622d35d95cd4233f8d7af"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a71d3fd2567473d746ecb733d7fa28c7e" id="r_a71d3fd2567473d746ecb733d7fa28c7e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a71d3fd2567473d746ecb733d7fa28c7e">train</a> (<a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a> const &amp;dataset)=0</td></tr>
<tr class="memdesc:a71d3fd2567473d746ecb733d7fa28c7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Core of the Trainer interface.  <br /></td></tr>
<tr class="separator:a71d3fd2567473d746ecb733d7fa28c7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_nameable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_nameable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_nameable.html">shark::INameable</a></td></tr>
<tr class="memitem:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable" id="r_a877dbdfc6b58ea836495143cea44a98c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a877dbdfc6b58ea836495143cea44a98c">~INameable</a> ()</td></tr>
<tr class="separator:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9893f99314de30cd472e649c235d0db4 inherit pub_methods_classshark_1_1_i_nameable" id="r_a9893f99314de30cd472e649c235d0db4"><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a9893f99314de30cd472e649c235d0db4">name</a> () const</td></tr>
<tr class="memdesc:a9893f99314de30cd472e649c235d0db4 inherit pub_methods_classshark_1_1_i_nameable"><td class="mdescLeft">&#160;</td><td class="mdescRight">returns the name of the object  <br /></td></tr>
<tr class="separator:a9893f99314de30cd472e649c235d0db4 inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_serializable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_serializable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_serializable.html">shark::ISerializable</a></td></tr>
<tr class="memitem:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable" id="r_a7baa9ce108d7278822297ce15882782a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a7baa9ce108d7278822297ce15882782a">~ISerializable</a> ()</td></tr>
<tr class="memdesc:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual d'tor.  <br /></td></tr>
<tr class="separator:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable" id="r_ad4ad9a7c274deff642f91e98417fbc63"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#ad4ad9a7c274deff642f91e98417fbc63">read</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive)</td></tr>
<tr class="memdesc:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the component from the supplied archive.  <br /></td></tr>
<tr class="separator:ad4ad9a7c274deff642f91e98417fbc63 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable" id="r_a9bddedd42933c922e323b73131f62f12"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a9bddedd42933c922e323b73131f62f12">write</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive) const</td></tr>
<tr class="memdesc:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the component to the supplied archive.  <br /></td></tr>
<tr class="separator:a9bddedd42933c922e323b73131f62f12 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable" id="r_abdda0c5b8e065b8afbac2cba8f58e841"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#abdda0c5b8e065b8afbac2cba8f58e841">load</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive, unsigned int version)</td></tr>
<tr class="memdesc:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned loading of components, calls read(...).  <br /></td></tr>
<tr class="separator:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable" id="r_a5bf66fa8db15cc529bec98976a2f5255"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a5bf66fa8db15cc529bec98976a2f5255">save</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive, unsigned int version) const</td></tr>
<tr class="memdesc:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned storing of components, calls write(...).  <br /></td></tr>
<tr class="separator:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable" id="r_a4560a94e8f4908fe8627e41e7d965735"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a4560a94e8f4908fe8627e41e7d965735">BOOST_SERIALIZATION_SPLIT_MEMBER</a> ()</td></tr>
<tr class="separator:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class Model, class LabelTypeT = typename Model::OutputType&gt;<br />
class shark::AbstractTrainer&lt; Model, LabelTypeT &gt;</div><p>Superclass of supervised learning algorithms. </p>
<dl class="section user"><dt></dt><dd><a class="el" href="classshark_1_1_abstract_trainer.html" title="Superclass of supervised learning algorithms.">AbstractTrainer</a> is the super class of all trainers, i.e., procedures for training or learning model parameters. It provides a single virtual function to train the model.</dd></dl>
<dl class="section user"><dt></dt><dd>Note: Most learning algorithms of this type operate on a special model type, such as a linear model, a kernel expansion, etc. Thus, these algorithms should provide a specialized train method accepting only this model type. The virtual train method should be overriden with a method that checks the type of the model and calls the specialized train method. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_abstract_trainer_8h_source.html#l00075">75</a> of file <a class="el" href="_abstract_trainer_8h_source.html">AbstractTrainer.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="aa4730fe9d59622d35d95cd4233f8d7af" name="aa4730fe9d59622d35d95cd4233f8d7af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4730fe9d59622d35d95cd4233f8d7af">&#9670;&#160;</a></span>DatasetType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt;<a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a>, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a>&gt; <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer</a>&lt; Model, LabelTypeT &gt;::DatasetType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_trainer_8h_source.html#l00081">81</a> of file <a class="el" href="_abstract_trainer_8h_source.html">AbstractTrainer.h</a>.</p>

</div>
</div>
<a id="a0cfa7cdd27b8bb162e64188095f8fa71" name="a0cfa7cdd27b8bb162e64188095f8fa71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cfa7cdd27b8bb162e64188095f8fa71">&#9670;&#160;</a></span>InputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef ModelType::InputType <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer</a>&lt; Model, LabelTypeT &gt;<a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">::InputType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_trainer_8h_source.html#l00079">79</a> of file <a class="el" href="_abstract_trainer_8h_source.html">AbstractTrainer.h</a>.</p>

</div>
</div>
<a id="aa4e344106831fb8227c2120681588ea9" name="aa4e344106831fb8227c2120681588ea9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa4e344106831fb8227c2120681588ea9">&#9670;&#160;</a></span>LabelType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef LabelTypeT <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer</a>&lt; Model, LabelTypeT &gt;::LabelType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_trainer_8h_source.html#l00080">80</a> of file <a class="el" href="_abstract_trainer_8h_source.html">AbstractTrainer.h</a>.</p>

</div>
</div>
<a id="a0d5c9d35b614d6a33e4e8bfeaf1e9298" name="a0d5c9d35b614d6a33e4e8bfeaf1e9298"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d5c9d35b614d6a33e4e8bfeaf1e9298">&#9670;&#160;</a></span>ModelType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef Model <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer</a>&lt; Model, LabelTypeT &gt;::ModelType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_abstract_trainer_8h_source.html#l00078">78</a> of file <a class="el" href="_abstract_trainer_8h_source.html">AbstractTrainer.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a71d3fd2567473d746ecb733d7fa28c7e" name="a71d3fd2567473d746ecb733d7fa28c7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71d3fd2567473d746ecb733d7fa28c7e">&#9670;&#160;</a></span>train()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer</a>&lt; Model, LabelTypeT &gt;::train </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a> &amp;&#160;</td>
          <td class="paramname"><em>model</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a> const &amp;&#160;</td>
          <td class="paramname"><em>dataset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Core of the Trainer interface. </p>

<p>Implemented in <a class="el" href="classshark_1_1_abstract_weighted_trainer.html#a9e5711480e4f1e214ff3c30a9604d10a">shark::AbstractWeightedTrainer&lt; Model, LabelTypeT &gt;</a>, and <a class="el" href="classshark_1_1_linear_s_a_g_trainer.html#a9e5711480e4f1e214ff3c30a9604d10a">shark::LinearSAGTrainer&lt; InputType, LabelType &gt;</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_loo_error.html#ac21fc9ca54e8f324cc6136bc5cebb121">shark::LooError&lt; ModelTypeT, LabelType &gt;::eval()</a>, <a class="el" href="classshark_1_1_cross_validation_error.html#a8c37335d594fe383eeabcae364fa73a9">shark::CrossValidationError&lt; ModelTypeT, LabelTypeT &gt;::eval()</a>, and <a class="el" href="_kernel_regression_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/Trainers/<a class="el" href="_abstract_trainer_8h_source.html">AbstractTrainer.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
